<template>
	<view :style="themeColor">
		<view class="page">
			<view
				class="flex benben-position-layout flex flex-wrap align-center knowPage_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }"
			>
				<view class='flex flex-wrap align-center knowPage_fd0_0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
					<image
						class='knowPage_fd0_0_c0'
						mode="aspectFit"
						:src='STATIC_URL+"496.png"'
					></image>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<view
				class="loading_css"
				v-if="isShow"
			>
				<u-loading
					size="36"
					color="#AD3823"
				></u-loading>
				<view>加载中</view>
			</view>
			<block v-else>
				<!---flex布局flex布局开始-->
				<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout knowPage_flex_1">
					<view class='flex flex-direction flex-wrap align-stretch knowPage_fd1_0'>
						<text
							class='knowPage_fd1_0_c0'
							style="font-family: Alimama DongFangDaKai;"
						>{{home_title}}</text>
						<text
							class='knowPage_fd1_0_c1'
							style="font-family: Alimama DongFangDaKai;"
						>{{home_desc}}</text>
					</view>
				</view>

				<!---flex布局flex布局结束-->
				<!---flex布局flex布局开始-->
				<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout knowPage_flex_2">
					<view
						class='knowPage_fd2_0'
						v-for="(v, k) in list"
						:key="k"
						:style="{backgroundImage: 'url(' + v.bg_img + ')'}"
						@tap.stop="handleJumpDiy"
						data-type="navigateTo"
						:data-url="`/pages/shouye/courseIntroduction/courseIntroduction?aid=${v.aid}&name=${v.name}`"
					>
						<text
							class='knowPage_fd2_0_c0'
							style="font-family: Alimama DongFangDaKai;"
						>{{v.name}}</text>
					</view>
				</view>

				<!---flex布局flex布局结束-->
			</block>

		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"home_title": global.home_title,
				"home_desc": global.home_desc,
				"isShow": true,
				"list": [],
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			this.getList();
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			// 列表数据  65533d646fe83
			getList() {
				this.$api.post(global.API_VERSION + '65533d646fe83', {

				}).then(res => {
					this.isShow = false;
					if (res.data.code == 1) {
						this.list = res.data.data;
					} else {
						this.$message.info(res.data.msg);
					}
				})
			},

		}
	};
</script>
<style
	lang="scss"
	scoped
>
	.page {
		width: 100vw;
		// height: 100vh;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(https://www.guochaoxiaoju.com/uploads/mini/495.png) no-repeat;
		background-size: 100vw 100vh;
	}

	.knowPage_flex_0 {
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
	}

	.knowPage_fd0_0_c0 {
		width: 40rpx;
		height: 40rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.knowPage_fd0_0 {
		padding: 0rpx 0rpx 0rpx 30rpx;
	}

	.knowPage_flex_1 {
		padding: 24rpx 0rpx 0rpx 0rpx;
	}

	.knowPage_fd1_0_c1 {
		color: #FFFFFF;
		font-size: 36rpx;
		font-weight: 400;
		padding: 27rpx 0rpx 27rpx 0rpx;
	}

	.knowPage_fd1_0_c0 {
		color: #FFFFFF;
		font-size: 64rpx;
		font-weight: 400;
	}

	.knowPage_fd1_0 {
		margin: 0rpx 30rpx 0rpx 30rpx;
	}

	.knowPage_flex_2 {
		// background: url(https://www.guochaoxiaoju.com/uploads/mini/497.png) no-repeat;
		// background-size: 100% auto;
		background: #FFFFFF;
		border: 1px solid #668CA0;
		margin: 27rpx 32rpx 0rpx 32rpx;
		border-radius: 32rpx 32rpx 32rpx 32rpx;

		padding: 40rpx 30rpx 13rpx 30rpx;

	}

	.knowPage_fd2_5 {
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		background: url(https://www.guochaoxiaoju.com/uploads/mini/503.png) no-repeat;
		border-radius: 16rpx;
		background-size: 100% 100%;
		// padding: 40rpx 0rpx 40rpx 0rpx;
		// margin: 0rpx 0rpx 27rpx 0rpx;
	}

	.knowPage_fd2_4 {
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		background: url(https://www.guochaoxiaoju.com/uploads/mini/502.png) no-repeat;
		border-radius: 16rpx;
		background-size: 100% 100%;
		// padding: 40rpx 0rpx 40rpx 0rpx;
		margin: 0rpx 0rpx 27rpx 0rpx;
	}

	.knowPage_fd2_3 {
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		background: url(https://www.guochaoxiaoju.com/uploads/mini/501.png) no-repeat;
		border-radius: 16rpx;
		background-size: 100% 100%;
		// padding: 40rpx 0rpx 40rpx 0rpx;
		margin: 0rpx 0rpx 27rpx 0rpx;
	}

	.knowPage_fd2_2 {
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		background: url(https://www.guochaoxiaoju.com/uploads/mini/500.png) no-repeat;
		border-radius: 16rpx;
		background-size: 100% 100%;
		// padding: 40rpx 0rpx 40rpx 0rpx;
		margin: 0rpx 0rpx 27rpx 0rpx;
	}

	.knowPage_fd2_1 {
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		background: url(https://www.guochaoxiaoju.com/uploads/mini/499.png) no-repeat;
		border-radius: 16rpx;
		background-size: 100% 100%;
		// padding: 40rpx 0rpx 40rpx 0rpx;
		margin: 0rpx 0rpx 27rpx 0rpx;
	}

	.knowPage_fd2_0_c0 {
		color: #333333;
		font-size: 40rpx;
		font-weight: 400;
	}

	.knowPage_fd2_0 {
		height: 120rpx;
		line-height: 120rpx;
		text-align: center;
		background-repeat: no-repeat;
		// background: url(https://www.guochaoxiaoju.com/uploads/mini/498.png) no-repeat;
		border-radius: 16rpx;
		background-size: 100% 100%;
		// padding: 40rpx 0rpx 40rpx 0rpx;
		margin: 0rpx 0rpx 27rpx 0rpx;
	}
</style>